



        var oriInner = $('main .swiperBox:eq(0)').find('.itmInfSwiper .swiper-wrapper').html();
        $('main .swiperBox')[0].ori = oriInner;
        $('main .swiperBox')[0].length = $('main .swiperBox:eq(0)').find('.swiper-slide').length;
        var itmInfSwiper = new Swiper('.itmInfSwiper',{
            loop:true
        })
        var scaleSwiper = new Swiper('.scaleSwiper',{
            loop:true,
        })
        var updateDesc = null
        function exclusiveActions(){
            var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;

            $('main .headPic .box img')[0].style.transform = 'translateY(' + (scrollTop * 0.125) + 'px)';
            transformTwice($('main .picTxt .row:nth-child(2) .pic .horLine'),210,'translateX')
            transformTwice($('main .picTxt .row:nth-child(1) .pic .picBox img'),-81,'translateY');
            transformTwice($('main .picTxt .row:nth-child(2) .pic .picBox img'),-47,'translateY');
            transformTwice($('main .picTxt .row:nth-child(3) .pic .picBox img'),-48,'translateY');
            for(var rh = 0;rh < $('main .parts .contn .row .rowHead').length;rh++){
                transformTwice($('main .parts .contn .row .rowHead:eq(' + rh + ') .name'),28,'translateY');
                transformTwice($('main .parts .contn .row .rowHead:eq(' + rh + ') .desc'),12,'translateY')
            }
        }
        $(document).ready(function(){
            $('main .swiper .contn .swiperBox .btns p').click(function(){
                if($(this)[0].className.indexOf('prev') >= 0){
                    itmInfSwiper.slidePrev();
                }else{
                    itmInfSwiper.slideNext();
                }
            })
            watchWindowWidth = setInterval(function(){
                if(window.innerWidth >= 768 && itmInfSwiper.params.spaceBetween != 0){
                    itmInfSwiper.params.spaceBetween = 0;
                    itmInfSwiper.update();
                }else if(window.innerWidth < 768 && itmInfSwiper.params.spaceBetween != 15){
                    itmInfSwiper.params.spaceBetween = 15;
                    itmInfSwiper.update();
                }
                if(window.innerWidth != consultWidth){
                    consultWidth = window.innerWidth;
                }
            },10)

            $('main .swiper .contn .itmInfSwiper').click(function(){
                clearInterval(updateDesc);
                $('main .scalePalace .box .details h3')[0].innerText = $(this).parents('.contn').find('.txt h2').text();
                $('main .scalePalace .box .details p')[0].innerText = $(this).parents('.contn').find('.txt p').text();
                $('.scaleSwiper .swiper-wrapper')[0].innerHTML =  $(this).parents('.swiperBox')[0].ori;
                $('main .scalePalace .box .pages .length')[0].innerText = '0' + $(this).parents('.swiperBox')[0].length;
                scaleSwiper.destroy();
                scaleSwiper = new Swiper('.scaleSwiper',{
                    loop:true
                })
                var This = this;
                setTimeout(function(){
                    var ind = parseInt($(This).find('.swiper-slide-active').attr('data-swiper-slide-index')) + 1;
                    scaleSwiper.slideTo(ind);
                },10)
                scaleSwiper.update();
                $('main .scalePalace').addClass('active');
                updateDesc = setInterval(function(){
                    $('main .scalePalace .box .pages .current')[0].innerText = '0' + (parseInt($('.scaleSwiper').find('.swiper-slide-active').attr('data-swiper-slide-index')) + 1);
                },10)
            })
            $('main .scalePalace .box .close').click(function(){
                $('main .scalePalace').removeClass('active');
                clearInterval(updateDesc);
            })
        })